Skip to main content
GET
/
companies
/
{company_id}
/
search
[ALPHA] Search documents about a company
curl --request GET \
  --url https://api.getpg.ai/public-api/v1/companies/{company_id}/search \
  --header 'x-api-key: <api-key>'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.getpg.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Your API key for authentication. Get your API key from the PG:AI dashboard under Settings > API Keys.

Path Parameters

company_id
string
required

Company UUID

Query Parameters

q
string
required

Search query.

page
integer
default:1

Page number.

per_source
integer
default:25

Page size. Default 25, maximum 50 on all list endpoints. Omit to use the default; increase up to 50 only if you need larger pages. Applied per source.

date_from
string

ISO 8601 lower bound on result date.

date_to
string

ISO 8601 upper bound on result date.

Response

Success — { items, total, page, per_page, company }. Top-level company is { id, name, domain } for the path company (items omit per-row company). Each item has source_type (public_doc | uploaded_doc), id, title, text, optional event / file blocks as for other search responses.

Response data